#ifndef WORKWINDOW_H
#define WORKWINDOW_H
#include "workwindowModel.h"
#include "subtasks.h"
#include "staffwin.h"
#include <QMainWindow>
#include <QtSql>

namespace Ui {
class MainWindo;
}

class MainWindo : public QMainWindow
{
    Q_OBJECT

public:
    MainWindo(QWidget *parent, int us, bool bo);
    //MainWindow (int n);
    int UserId;
    int RealUser;
    bool boss_flag;
    void refresh_window(int user, bool boss);
    MyModel *model_table;
    SubTasks *sub_widget;
    StaffWin *staff_widget;
    ~MainWindo();


private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_delTask_clicked();

    void on_staff_b_clicked();

    void on_old_tasks_clicked();

    void on_pushButton_3_clicked();

    void on_back_win_clicked();

    void on_addTask_clicked();

private:
    Ui::MainWindo *ui;

};

#endif // WORKWINDOW_H
